import ajax from "./request.js";



export function api_index_new_mingxi_list(data) {
	return ajax('api.index.new_mingxi_list', data)
}

//首次钱包加载
export function member(openid) {
	return ajax('member', {
		openid
	})
}
//walletTypeList钱包详情列表 api.index.get_detail_list
export function index_get_detail_list(data) {
	return ajax('api.index.get_detail_list', data)
}
//钱包提现 member.my_wallet
export function member_my_wallet(openid) {
	return ajax('member.my_wallet', {
		openid
	})
}
// 提现记录  member.log.get_list
export function member_log_get_list(data) {
	return ajax('member.log.get_list', data)
}
//申请提现首次加载 member.withdraw
export function member_withdraw(data) {
	return ajax('member.withdraw', data);
}

//申请提现 member.withdraw.submit
export function member_withdraw_submit(data) {
	return ajax('member.withdraw.submit', data);
}

//首信支付 api.index.yz_pay_order
export function api_index_yz_pay_order(data) {
	return ajax('api.index.yz_pay_order', data);
}

//银行卡支付 api.index.recharge
export function api_index_recharge(data) {
	return ajax('api.index.recharge', data);
}

//获取公司账户信息  api.index.bank_info
export function api_index_bank_info(openid) {
	return ajax('api.index.bank_info', {
		openid
	});
}



// 获取银行卡信息   api.index.show_zishanghu_info
export function api_index_show_zishanghu_info(openid) {
	return ajax('api.index.show_zishanghu_info', {
		openid
	});
}

//   api.index.get_province_city_area_profession
export function api_index_get_province_city_area_profession(openid) {
	return ajax('api.index.get_province_city_area_profession', {
		openid
	});
}

//   util.uploader


//   api.index.zishanghu
export function api_index_zishanghu(data) {
	return ajax('api.index.zishanghu', data);
}



// 获取签约信息api.index.get_xs_signing
export function api_index_get_xs_signing(openid) {
	return ajax('api.index.get_xs_signing', {
		openid
	});
}

// 新生支付 api.index.xs_create_order
export function api_index_xs_create_order(data) {
	return ajax('api.index.xs_create_order', data);
}

//新生支付签约获取验证码 api.index.xs_get_smsCode
export function api_index_xs_get_smsCode(data) {
	return ajax('api.index.xs_get_smsCode', data);
}

//新生支付签约  api.index.xs_signing
export function api_index_xs_signing(data) {
	return ajax('api.index.xs_signing', data);
}
// 取消新生支付签约 api.index.xs_termination
export function api_index_xs_termination(openid) {
	return ajax('api.index.xs_termination', {
		openid
	});
}

// api.index.my_huo_list
export function api_index_my_huo_list(data) {
	return ajax('api.index.my_huo_list', data);
}


// api.index.xs_pay_order  新生支付
export function api_index_xs_pay_order(data) {
	return ajax('api.index.xs_pay_order', data);
}
// api.index.xs_pay_order  新生支付
export function api_index_xs_pay_success(data) {
	return ajax('api.index.xs_pay_success', data);
}

// api.index.credit2_hzzc 茶来茶网可用资金互转接口

export function api_index_credit2_hzzc(data) {
	return ajax('api.index.credit2_hzzc', data);
}

//account.verifycode 验证码
export function account_verifycode(data) {
	return ajax('account.verifycode', data);
}

//api.index.recharge_list 审核记录页面
export function api_index_recharge_list(data) {
	return ajax('api.index.recharge_list', data);
}